{// 加载头部公共文件 }
<include file="Public:header" />
<script>
$(function(){
	
	$('[data-toggle=popover]')
      .popover();
})
</script>
<div class="container">

	<div class="row">		
	<volist name="list" id="model">
        <div class="col-md-3">
          <div class="thumbnail">
            <img src="__PUBLIC__/{$model.img}" style="width:300px;height:150px;"alt="Generic placeholder thumbnail">
            <div class="caption">
              <h3><b>{$model.name}</b></h3>
              <p>{$model['intro']|msubstr=0,40}</a></p>
              <p>
			  <if condition="$model['state'] eq 0">
			  <a href="{:U('home/room/detail/',array('rid'=>$model['rid'],'name'=>$model['name']))}" class="btn btn-primary" role="button">现在预约</a>&nbsp;<else/><a href="#" class="btn btn-danger" role="button">暂停挂号</a>&nbsp;  
			  </if><a href="#" class="btn btn-default"  data-toggle="popover" data-placement="top" data-content="{$model.intro}">科室简介</a>
			  </p>
            </div>
          </div>
        </div>	
	</volist>
    </div>	
</div> <!-- /container -->

<!-- 主页面结束 -->
{// 加载尾部公共文件 }
<include file="Public:footer" />